<script lang="ts" setup>
import { reactive, onMounted } from "vue";
import Style1Panel from "./panel/style-1.vue";
import Style2Panel from "./panel/style-2.vue";

defineOptions({
  name: "TemplateSetting"
});

// 状态参数
const state = reactive({
  activeName: "style-1"
});

// 页面加载时
onMounted(() => {
  //
});
</script>
<template>
  <div class="page-container">
    <div class="mb-3">
      <el-alert
        title="With description"
        type="primary"
        description="This is a description."
        show-icon
        :closable="false"
      />
    </div>
    <el-card class="flex-1" shadow="always">
      <el-tabs v-model="state.activeName">
        <el-tab-pane label="样式一" name="style-1">
          <Style1Panel />
        </el-tab-pane>
        <el-tab-pane label="样式二" name="style-2">
          <Style2Panel />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>
<style scoped lang="scss">
.page-container {
  display: flex;
  flex-direction: column;
}

.el-card {
  :deep(.el-card__body) {
    padding: 0;
  }
}

.el-tabs {
  padding: 0 15px 15px;
}
</style>
